using System;
namespace ServiceStack.Logging
{
	public class DebugLogFactory : ILogFactory
	{
		private readonly bool debugEnabled;
		public DebugLogFactory(bool debugEnabled = true)
		{
			this.debugEnabled = debugEnabled;
		}
		public ILog GetLogger(Type type)
		{
			return new DebugLogger(type)
			{
				IsDebugEnabled = this.debugEnabled
			};
		}
		public ILog GetLogger(string typeName)
		{
			return new DebugLogger(typeName)
			{
				IsDebugEnabled = this.debugEnabled
			};
		}
	}
}
